class JuXing{
    private int length;
    private int width;

    // 空参构造方法
    public JuXing() {
    }

    // 全参构造方法
    public JuXing(int length, int width) {
        this.length = length;
        this.width = width;
    }

    // 获取长
    public int getLength() {
        return length;
    }

    // 设置长
    public void setLength(int length) {
        this.length = length;
    }

    // 获取宽
    public int getWidth() {
        return width;
    }

    // 设置宽
    public void setWidth(int width) {
        this.width = width;
    }

    // 计算并打印矩形面积
    public void area() {
        int area = length * width;
        System.out.printf("长为: %d, 宽为: %d 的矩形的面积为: %d\n", length, width, area);
    }

    // 计算并打印矩形周长
    public void size() {
        int zhouchang = (length + width) * 2;
        System.out.printf("长为: %d, 宽为: %d 的矩形的周长为: %d\n", length, width, zhouchang);
    }
}